<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JSON格式字符串</title>
</head>
<body>
    <script>
        var jsonStr='{"name":"张三","age":25,"addr":["北京","上海","广州"]}';
        alert(jsonStr)


    </script>
</body>
</html>